﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="PageWithPanels.aspx.cs" Inherits="PageWithPanels" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeaderContentPlaceHoder" runat="Server">
</asp:Content>
<asp:Content ID="MainContent" ContentPlaceHolderID="MainContentPlaceHolder" runat="Server">
    <cc1:CollapsiblePanelExtender ID="NewsCollapseExtender" runat="Server" TargetControlID="NewsPanel"
        CollapsedSize="0" Collapsed="false" ExpandControlID="NewsPanelHeader" CollapseControlID="NewsPanelHeader"
        AutoCollapse="False" AutoExpand="False" ScrollContents="false" TextLabelID="Label1"
        CollapsedText="Show Details..." ExpandedText="Hide Details" ImageControlID="Image1"
        ExpandedImage="~/images/collapse.jpg" CollapsedImage="~/images/expand.jpg" ExpandDirection="Vertical" />
    <asp:Panel Height="100" runat="server" ID="NewsPanelHeader" CssClass="collapsePanelHeader">
        <asp:Image ImageUrl="~/images/NEwsIcon.png" runat="server" ID="Image1" />
        <asp:Label runat="server" ID="NewsLabel" Text="News"></asp:Label>
    </asp:Panel>
    <asp:Panel runat="server" ID="NewsPanel" CssClass="collapsePanel">
        <asp:ListView ID="GoogleNewsListView" runat="server" ItemPlaceholderID="itemPlaceHolder"
            OnItemDataBound="GoogleNewsListView_ItemDataBound" OnDataBound="GoogleNewsListView_DataBound"
            OnItemCreated="GoogleNewsListView_ItemCreated">
            <LayoutTemplate>
                <h1>
                    <asp:Label ID="GoogleNewsTitleLabel" runat="server" Text="Results From Google News"></asp:Label></h1>
                <ul class="browselist">
                    <li id="itemPlaceHolder" runat="server"></li>
                </ul>
            </LayoutTemplate>
            <ItemTemplate>
                <li>
                    <h3>
                        <a rel="nofollow" target="_blank" href="<%# XPath("link") %>">
                            <%# XPath("title")%></a>
                    </h3>
                    <asp:Label ID="AdsenseInlineLabel" Text="" Visible="false" runat="server"></asp:Label>
                    <%# XPath("description")%>
                </li>
            </ItemTemplate>
        </asp:ListView>
        <asp:XmlDataSource ID="GoogleNewsDataSource" XPath="/rss/channel/item[position()<7]"
            runat="server"></asp:XmlDataSource>
    </asp:Panel>
    <cc1:CollapsiblePanelExtender ID="CollapsiblePanelExtender1" runat="Server" TargetControlID="BlogsPanel"
        CollapsedSize="0" ExpandedSize="300" Collapsed="false" ExpandControlID="BlogsPanel"
        CollapseControlID="BlogsPanel" AutoCollapse="False" AutoExpand="False" ScrollContents="True"
        TextLabelID="Label1" CollapsedText="Show Details..." ExpandedText="Hide Details"
        ImageControlID="Image1" ExpandedImage="~/images/collapse.jpg" CollapsedImage="~/images/expand.jpg"
        ExpandDirection="Vertical" />
    <asp:Panel ID="BlogsPanel" runat="server">
        <asp:Image ImageUrl="~/images/BlogIcon.png" runat="server" ID="Image2" />
        <asp:Label runat="server" ID="BlogLable" Text="Blogs"></asp:Label>
        <asp:ListView ID="BlogSearchListView" runat="server" ItemPlaceholderID="itemPlaceHolder">
            <LayoutTemplate>
                <h1>
                    <asp:Label ID="BlogSearchTitleLabel" runat="server" Text="Results From BlogSearch"></asp:Label></h1>
                <ul class="browselist">
                    <li id="itemPlaceHolder" runat="server"></li>
                </ul>
            </LayoutTemplate>
            <ItemTemplate>
                <li>
                    <p>
                        <a rel="nofollow" target="_blank" href="<%# XPath("link") %>">
                            <%# XPath("title")%></a>
                    </p>
                    <p>
                        <%# XPath("description")%>
                    </p>
                </li>
            </ItemTemplate>
        </asp:ListView>
        <asp:XmlDataSource ID="BlogSearchDataSource" XPath="/rss/channel/item[position()<7]"
            runat="server"></asp:XmlDataSource>
    </asp:Panel>
    <asp:Image ImageUrl="~/images/LiveWebIcon.png" runat="server" ID="Image3" />
    <asp:Label runat="server" ID="LiveLabel" Text="Live Web Results"></asp:Label>
    <asp:ListView ID="LiveSearchListView" runat="server" ItemPlaceholderID="itemPlaceHolder">
        <LayoutTemplate>
            <h1>
                <asp:Label ID="BlogSearchTitleLabel" runat="server" Text="Results From Live.com"></asp:Label></h1>
            <ul class="browselist">
                <li id="itemPlaceHolder" runat="server"></li>
            </ul>
        </LayoutTemplate>
        <ItemTemplate>
            <li>
                <p>
                    <a rel="nofollow" target="_blank" href="<%# XPath("link") %>">
                        <%# XPath("title")%></a>
                </p>
                <p>
                    <%# XPath("description")%>
                </p>
            </li>
        </ItemTemplate>
    </asp:ListView>
    <asp:ListView ID="LiveNewsListView" runat="server" ItemPlaceholderID="itemPlaceHolder">
        <LayoutTemplate>
            <h1>
                <asp:Label ID="BlogSearchTitleLabel" runat="server" Text="Results From Live Search"></asp:Label></h1>
            <ul class="browselist">
                <li id="itemPlaceHolder" runat="server"></li>
            </ul>
        </LayoutTemplate>
        <ItemTemplate>
            <li>
                <p>
                    <a rel="nofollow" target="_blank" href="<%# XPath("link") %>">
                        <%# XPath("title")%></a>
                </p>
                <p>
                    <%# XPath("description")%>
                </p>
            </li>
        </ItemTemplate>
    </asp:ListView>
    <asp:XmlDataSource ID="LiveNewsDataSource" XPath="/rss/channel/item[position()<7]"
        runat="server"></asp:XmlDataSource>
    <asp:XmlDataSource ID="LiveSearchDataSource" XPath="/rss/channel/item[position()<7]"
        runat="server"></asp:XmlDataSource>
    <asp:Label Text="Videos" runat="server" ID="Label3"></asp:Label>
    <asp:Image ImageUrl="~/images/VideosIcon.png" runat="server" ID="VideosIcon" />
    <h1>
        <asp:Label ID="VideoTitleLabel" runat="server" Text="Video material via Youtube:"></asp:Label></h1>
    <asp:Label ID="VideoPlayerSource" runat="server" />
    <asp:ListView ID="VideosListView" runat="server" ItemPlaceholderID="itemPlaceHolder"
        OnItemDataBound="VideosListView_ItemDataBound" OnSelectedIndexChanged="VideosListView_SelectedIndexChanged"
        OnSelectedIndexChanging="VideosListView_SelectedIndexChanging">
        <LayoutTemplate>
            <asp:Label ID="VideoSource" runat="server"></asp:Label>
            <ul class="browselist">
                <li id="itemPlaceHolder" runat="server"></li>
            </ul>
            <hr />
        </LayoutTemplate>
        <EmptyDataTemplate>
            No videos on this topic
        </EmptyDataTemplate>
        <ItemTemplate>
            <li>
                <asp:ImageButton runat="server" ID="VideoThumbNail" CommandName="Select" ImageUrl=""
                    Width="97" />
                <asp:Label ID="VideoTitle" runat="server"></asp:Label>
            </li>
        </ItemTemplate>
    </asp:ListView>
    <asp:Label Text="Images" runat="server" ID="ImagesLabel"></asp:Label>
    <asp:Image ImageUrl="~/images/ImagesIcon.png" runat="server" ID="ImagesIcon" />
    <h1>
        <asp:Label ID="Label1" runat="server" Text="Pictures from picasa:"></asp:Label></h1>
    <asp:Label ID="Label2" runat="server" />
    <asp:ListView ID="PicasaImagesListView" runat="server" ItemPlaceholderID="itemPlaceHolder"
        OnItemDataBound="PicasaImagesListView_ItemDataBound" OnSelectedIndexChanged="PicasaImagesListView_SelectedIndexChanged"
        OnSelectedIndexChanging="PicasaImagesListView_SelectedIndexChanging">
        <LayoutTemplate>
            <asp:Image ID="PicasaImage" runat="server"></asp:Image>
            <ul>
                <li id="itemPlaceHolder" runat="server"></li>
            </ul>
        </LayoutTemplate>
        <EmptyDataTemplate>
            No images on this topic
        </EmptyDataTemplate>
        <ItemTemplate>
            <li>
                <asp:ImageButton runat="server" ID="ImageThumbNail" CommandName="Select" ImageUrl="" />
                <asp:Label ID="ImageTitle" runat="server"></asp:Label>
            </li>
        </ItemTemplate>
    </asp:ListView>
    <div class="two-column-container">
    </div>
</asp:Content>
